/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.kj.entity.KjActivityJob;
import com.jeesite.modules.kj.dao.KjActivityJobDao;

/**
 * kj_activity_jobService
 * @author hzy
 * @version 2021-07-10
 */
@Service
@Transactional(readOnly=true)
public class KjActivityJobService extends CrudService<KjActivityJobDao, KjActivityJob> {

	/**
	 * 获取单条数据
	 * @param kjActivityJob
	 * @return
	 */
	@Override
	public KjActivityJob get(KjActivityJob kjActivityJob) {
		return super.get(kjActivityJob);
	}

	/**
	 * 查询分页数据
	 * @param kjActivityJob 查询条件
	 * @param kjActivityJob.page 分页对象
	 * @return
	 */
	@Override
	public Page<KjActivityJob> findPage(KjActivityJob kjActivityJob) {
		return super.findPage(kjActivityJob);
	}

	/**
	 * 保存数据（插入或更新）
	 * @param kjActivityJob
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(KjActivityJob kjActivityJob) {
		super.save(kjActivityJob);
	}

	/**
	 * 更新状态
	 * @param kjActivityJob
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(KjActivityJob kjActivityJob) {
		super.updateStatus(kjActivityJob);
	}

	/**
	 * 删除数据
	 * @param kjActivityJob
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(KjActivityJob kjActivityJob) {
		super.delete(kjActivityJob);
	}

	@Transactional(readOnly=false)
	public void updateAttentions(String id){
		dao.updateAttentions(id);
	}
}
